![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@babel/plugin-proposal-export-default-from
Advanced tools
The @babel/plugin-proposal-export-default-from package allows developers to use the proposed export default from syntax in their JavaScript code, which is not yet part of the ECMAScript standard. This plugin transforms the proposed syntax into a form that can be understood by current JavaScript engines.
Export default from syntax
This feature allows you to export a default export from another module in a single line. Without this plugin, you would need to import the default export and then export it, which is more verbose.
export v from 'mod';
This package allows you to export namespaced content from another module. It is similar to @babel/plugin-proposal-export-default-from but for namespace exports instead of default exports.
This package was used to provide similar functionality as @babel/plugin-proposal-export-default-from, allowing both default and named exports from syntax. However, it has been deprecated in favor of the individual proposal plugins provided by Babel.
Compile export default to ES2015
See our website @babel/plugin-proposal-export-default-from for more information.
Using npm:
npm install --save-dev @babel/plugin-proposal-export-default-from
or using yarn:
yarn add @babel/plugin-proposal-export-default-from --dev
v7.25.9 (2024-10-22)
babel-parser
, babel-template
, babel-types
syntacticPlaceholders
mode (@liuxingbaoyu)babel-helper-compilation-targets
, babel-preset-env
ClassAccessorProperty
to prevent the no-undef
rule (@victorenator)babel-parser
, babel-types
VISITOR_KEYS
etc. faster to access (@liuxingbaoyu)FAQs
Compile export default to ES2015
The npm package @babel/plugin-proposal-export-default-from receives a total of 3,289,037 weekly downloads. As such, @babel/plugin-proposal-export-default-from popularity was classified as popular.
We found that @babel/plugin-proposal-export-default-from demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.